import router from "@/router";
import nprogress from "nprogress";
import "nprogress/nprogress.css";
import type {RouteLocationNormalized} from "vue-router";

router.beforeEach((to: RouteLocationNormalized, from: RouteLocationNormalized , next: any) => {
    console.log(to, from);
    nprogress.start();
    next();
});

router.afterEach((to: RouteLocationNormalized, from: RouteLocationNormalized) => {
    console.log(to, from)
    nprogress.done();
});

